package com.jt.demo.mapper;

import java.util.List;
import java.util.Map;

import com.jt.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RestController;

@Mapper
@RestController
public interface UserMapper {
	
	List<User> findAll();

    void saveUser(User user);

    int saveUser2(User user);

    int updateUserById(User user);

    int deleteUserByName(Integer id);

    User findUserById(int id);

    List<User> findUserByMap(Map<String, Object> map);

    List<User> findUserBymId(@Param("m") int a,
                             @Param("n") int b);

    List<User> findUserByLike(String name);

    List<User> findByColumn(Map map);


    List<User> findUserByIn(Integer[] array);

    List<User> findUserByIn1(List list1);

    List<User> findUserByInMap(Map map);
}
